package com.siwei.infoextract.rule;

import com.siwei.infoextract.wrapper.parser.DomNode;

public class TagNameCriteria extends Criteria {
	public TagNameCriteria(String criteriaName, String criteriaValue) {
		super(criteriaName, criteriaValue);
	}

	public boolean doAction(DomNode domNode) {
		// do nothing in the super class
		String tagName = domNode.getName();

		return tagName.trim().equalsIgnoreCase(criteriaValue.trim());
	}
}
